package imPro;

import java.io.Serializable;

/**
 *
 * @author Ragnar
 */
public class LabeledObject implements Serializable
{
    private int area;
    private int width;
    private int xPos;
    private int yPos;
    
    public LabeledObject(int area, int xPos, int yPos)
    {
        this.area = area;
        //System.out.println("Areal2: " + area);
        this.width = (int) Math.sqrt((4*area)/Math.PI);
        this.xPos = (xPos - (width/2));
        this.yPos = (yPos - (width/2));
        //System.out.println("Diameter: " + width);
    }

    public int getArea()
    {
        return area;
    }

    public int getWidth()
    {
        return width;
    }

    public int getxPos()
    {
        return xPos;
    }

    public int getyPos()
    {
        return yPos;
    }
}
